﻿using System;
using System.Text;
using Portal.Core;
using System.Collections.ObjectModel;

namespace Portal.Exam.Render
{
    public class ExamPermission:PermissionTemplate
    {
        public static string StaticId
        {
            get
            {
                return "ExamPermission";
            }
        }
        public override string Id
        {
            get
            {
                return StaticId;
            }
        }

        

        public override string PermissionTypeName
        {
            get
            {
                return "Phân quyền chính";
            }
        }

        public static string funcQuestionManage
        {
            get
            {
                return StaticId + "-QuestionManage";
            }
        }

        public static string funcRoomManage
        {
            get
            {
                return StaticId + "-RoomManage";
            }
        }

        public static string funcExamManage
        {
            get
            {
                return StaticId + "-ExamManage";
            }
        }

        public static string funcExamTemplateManage
        {
            get
            {
                return StaticId + "-ExamTemplateManage";
            }
        }

        public override PermissionFunctionCls[] PermissionFunctions
        {
            get
            {
                return new PermissionFunctionCls[]
                {
                    new PermissionFunctionCls(funcQuestionManage,Id,"Quản lý nhóm câu hỏi"),
                    new PermissionFunctionCls(funcExamManage,Id,"Quản lý kỳ thi"),
                    new PermissionFunctionCls(funcRoomManage,Id,"Quản lý phòng thi"),
                    new PermissionFunctionCls(funcExamTemplateManage,Id,"Quản lý đề thi"),
                };
            }
        }
    }
}
